<section id="content">
    <section class="vbox">
        <section class="scrollable padder">
            <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
                <li><a href="{:url('Home/index')}"><i class="fa fa-home"></i> 首页</a></li>
                <li><a href="#">系统管理员</a></li>
            </ul>
            <section class="panel panel-default">
                <div class="table-responsive">
                    <table class="table table-striped m-b-none" data-ride="datatables" style="text-align:center!important;">
                        <thead>
                        <tr>
                            <th colspan="9">
                                <div class="row" style="padding: 1rem 0;">
                                    <form class="col-sm-12" action="{:url('User/account')}" method="post" enctype="multipart/form-data" style="margin-top: 5px;margin-bottom: 0;">
                                        <input type="text" class="form-control" style="width:30rem;display: inline" data-required="true" name="search" value="{$search}" placeholder="账户名">
                                        <button type="submit" class="btn btn-success btn-s-xs">搜索</button>
                                    </form>
                                </div>
                            </th>
                        </tr>
                        <tr>
                            <th width="10%" style="text-align:center!important;">账户名</th>
                            <th width="10%" style="text-align:center!important;">密码</th>
                            <th width="10%" style="text-align:center!important;">权限</th>
                            <th width="10%" style="text-align:center!important;">创建时间</th>
                            <th width="10%" style="text-align:center!important;">操作</th>
                        </tr>
                        </thead>
                        <tbody style="font-size:1em;">
                        {volist name="res" id="v"}
                        <tr>
                            <td>{$v.name}</td>
                            <td>{$v.password}</td>
                            <td>{$v.class?($v.class==1?'高级':'低级'):'未知'}</td>
                            <td>{$v.create_time}</td>
                            <td>
                                <a href="{:url('User/account_add',array('id'=>$v.id,'page'=>$page,'search'=>$search))}" class="btn btn-s-md btn-info btn-rounded" style="margin-bottom: 5px">编辑</a>
                            </td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                </div>
                <table border="0" style="width: 100%; height: 20px">
                    <tbody>
                    <tr>
                        <td style="width: 2px; height: 31px"></td>
                        <td style="width: 500px; height: 31px">
                                <span id="pager" style="font-family:宋体;font-size:12px;">
                                    <table border="0" style="font-family:宋体;font-size:12px;">
                                    <tbody>
                                    <tr>
                                        <td align="right">
                                            <span>
                                                共<font color="Red">{$count}</font>条记录&nbsp;&nbsp;当前<font
                                                    color="Red">{$page}</font>/<font color="Red">{$allpage}</font>页
                                            </span>
                                            &nbsp;[<a id="pager_First"
                                                      href="{:url('User/account',array('page'=>1,'search'=>$search))}"
                                                      title="首页">首页</a>]
                                            &nbsp;[<a id="pager_Prev"
                                                      href="{:url('User/account',array('page'=>$page-1,'search'=>$search))}"
                                                      title="前页">前页</a>]
                                            &nbsp;[<a id="pager_Next" title="后页"
                                                      href="{:url('User/account',array('page'=>$page+1,'search'=>$search))}">后页</a>]
                                            &nbsp;[<a id="pager_Last" title="尾页"
                                                      href="{:url('User/account',array('page'=>$allpage,'search'=>$search))}">尾页</a>]
                                            &nbsp;转到
                                            <form action="{:url('User/account')}"
                                                  method="post"
                                                  style="display: inline">
                                                <input name="page" type="text" value="{$page}" id="pager_txbPage" style="width:30px;">
                                                <input name="search" type="text" value="{$search}" id="search" style="width:30px;display: none">
                                                <input type="submit" name="pager$btnGo" value="转到" id="pager_btnGo">
                                            </form>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                                </span>
                        </td>
                        <td style="width: 100px; height: 31px"></td>
                    </tr>
                    </tbody>
                </table>
            </section>
        </section>
    </section>
    <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen, open" data-target="#nav,html"></a>
</section>
<script type="text/javascript">
</script>

<style type="text/css">
    img{
        width: 60px;
    }
</style>
<!-- datatables -->

